/* 个人信息页面样式 */
.profile-page {
    padding: 2rem;
    background-color: var(--light-bg);
    min-height: calc(100vh - 70px);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

.profile-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.profile-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* 头像部分样式 */
.profile-avatar-section {
    text-align: center;
}

.profile-avatar {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.avatar-upload {
    position: static;
    transform: none;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.avatar-upload:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.upload-btn {
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* 信息部分样式 */
.profile-info-section {
    padding: 1rem;
}

.info-group {
    margin-bottom: 2rem;
}

.info-group h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: #f0f0f0;
}

.info-item label {
    width: 100px;
    color: var(--text-color);
    font-weight: 500;
}

.info-item span {
    flex: 1;
    color: var(--text-color);
}

/* 手机号显示样式 */
.phone-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-phone-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-phone-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.1);
}

.toggle-phone-btn i {
    font-size: 1.1rem;
}

.change-password-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.change-password-btn:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-item label {
        width: 100%;
    }
} 

/* 收货地址样式 */
.add-address-btn {
    border: none;
    color: var(--text-color);
    font-weight: 500;
}